import QtQuick 1.1
import com.nokia.symbian 1.1

Page {
    id: mainPage
    tools: commonTools

    function start() {
        setTopicLabel()


        if( deprecationWarning )
        {
            informationDialog.open();
            saveSettingValue("deprecationWarning", false)
        }

        newsList.doRequest();
    }

    function doRefresh() {
       newsList.resultPage = 1
       newsList.doRequest();
    }

    function setTopicLabel() {
        topicSelector.setTopicLabel();
    }

    TopicSelector {
        id: topicSelector
    }

    NewsList {
        id: newsList
        height: parent.height - topicSelector.height - toolBar.height *1.5
        anchors.top: topicSelector.bottom
    }

//    NewsListWebView {

//        id: newsList
//    }

    TopicSelectMenu {
        id: topicSelectMenu
    }
}
